var fetch8 = function(pageIndex ,callback){
  pageIndex = pageIndex || 1
  // manyRoomsForOneCertificateTable   一证多房 /一人多处住所
  $.ajax({
    type: 'GET',
    url: personInfo.ajaxUrl[2].page(pageIndex,10),
    beforeSend: function (xhr) {
      xhr.setRequestHeader('Authorization', tokenPgAuth);
      xhr.setRequestHeader('Accept-Profile', 'api-ailock-analysis-v1');
      xhr.setRequestHeader('Prefer', 'count=exact');
    }
  }).done(function (response,type,request1) {
    personInfo.total[2] = pgApiUtils.getTotal(request1); // 一房多人的总数
    $('.' + personInfo.totalDomId[2] + 1).text(personInfo.total[2])
    $('#' + personInfo.totalDomId[2] + 2).text(personInfo.total[2])
    console.log('一证多房',response)
    var options = {
      bDestroy:true,
      searching: false,
      bPaginate: true ,//表格分页
      bSort: false,
      bLengthMenu: false,
      bInfo: false,
      pageLength:10, // 每页显示数量
      bAutoWidth: false,
      bLengthChange: false,
      bProcessing: true,
      pgAiDisplayLength:personInfo.total[2],
      data: response,
      fnPageChange:function(settings){
        changePage(settings,'.manyRoomsForOneCertificateTable',1, personInfo)
      },
      columns: [
        {
          data: "name",
          className: 'ta',
          bSortable: false,
          render: function (data, type, full, meta) {
            if (!data) data = '--';
            return data
          }
        },
        {
          data: "phones",
          class: 'digit ta',
          bSortable: false,
          render: function (data, type, full, meta) {
            if (!data) data = '--';
            return data
          }
        },
        {
          data: "tally_houses",  //入住房间数量
          class: 'digit ta',
          bSortable: false,
          render: function (data, type, full, meta) {
            if (!data) data = '--';
            return data
          }
        },
      ],
    };
    options.fnInitComplete =  function (settings) {
      var myOptions = jQuery.extend(options, {
        fnPageChange: function (settings) {
          changePage(settings, '.manyRoomsForOneCertificateTable', 0, personInfo)
        },
        fnInitComplete: function (settings) {
          personInfo.bindEvent[2]()
        }
      });
      personInfo.tables[2][1] = $('.manyRoomsForOneCertificateTable').eq(1).dataTable(myOptions);
    }

    personInfo.tables[2][0] = $('.manyRoomsForOneCertificateTable').eq(0).dataTable(options);

  })
}

personInfo.bindEvent[2] = function () {
  $(".manyRoomsForOneCertificateTable").each(function (index,item){
    $(item).on("click","tr",function(){//给tr或者td添加click事件
      var data=personInfo.tables[2][index].api().row(this).data();//获取值的对象数据
      frequentRoomChanger(data,8)
    })
  })
}
